package com.hcbd.tdwt.base.hcbd;



import com.pangu.bdsdk2021.entity.BDBase;
import com.pangu.bdsdk2021.terminal.listener.TerminalListener2_1;

import org.greenrobot.eventbus.EventBus;

public class BDddxInfo extends BDBase {

    public String command;
    public String type;//类型
    public String enable;//使能
    public String receiving_address;//接收地址
    public String frequency;//频度


    public BDddxInfo() {
        this.TAG_2_1 = "$BDDDX";
    }

    public void build2_1(String instruc, TerminalListener2_1 listener2_1) {
        String[] values = instruc.split(",", -1);
        if (values.length >= 5) {
            this.type = values[1];
            this.enable = values[2];
            this.receiving_address = values[3];
            this.frequency = values[4];
            EventBus.getDefault().post(this);
        }
    }
}
